package com.citywithincity.db.sync;

import com.citywithincity.db.interfaces.Ar;

public class InsertCheckUnique implements SyncInsertMethod {
	private String targetTable;
	private String[] uniqueKeys;
	public InsertCheckUnique(String targetTable,String keys) {
		this.targetTable = targetTable;
		this.uniqueKeys = keys.split(",");
	}
	
	
	@Override
	public int insert(Ar ar) {
		return ar.insert(targetTable, uniqueKeys);
	}

}
